import request from '@/utils/request'

// 查询机构白名单列表
export function listOrganwhitelist(query) {
  return request({
    url: '/bus/organwhitelist/list',
    method: 'get',
    params: query
  })
}

// 查询机构白名单详细
export function getOrganwhitelist(id) {
  return request({
    url: '/bus/organwhitelist/' + id,
    method: 'get'
  })
}

// 新增机构白名单
export function addOrganwhitelist(data) {
  return request({
    url: '/bus/organwhitelist',
    method: 'post',
    data: data
  })
}

// 修改机构白名单
export function updateOrganwhitelist(data) {
  return request({
    url: '/bus/organwhitelist',
    method: 'put',
    data: data
  })
}

// 删除机构白名单
export function delOrganwhitelist(id) {
  return request({
    url: '/bus/organwhitelist/' + id,
    method: 'delete'
  })
}
